<script lang="ts" setup>
import { router } from '#/router';

defineOptions({ name: 'EmailActivate' });
</script>

<template>
  <div class="container">
    <div class="cookieCard">
      <p class="cookieHeading">请完成激活.</p>
      <p class="cookieDescription">
        激活邮件已发送至您的邮箱，请按提示完成用户注册。
      </p>
      <button class="acceptButton" @click="router.push('/auth/login')">
        去登录
      </button>
    </div>
  </div>
</template>
<style scoped>
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.submit-btn:hover {
  background-color: #4d84e2;
}

.submit-btn {
  width: auto;
  height: 49px;
  margin: 10px 0;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  background-color: #5995fd;
  border: none;
  border-radius: 49px;
  outline: none;
  transition: 0.5s;
}

.submit-btn.transparent {
  width: 130px;
  height: 41px;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  background: none;
  border: 2px solid #fff;
}

.cookieCard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  width: 55vw;
  height: 30vh;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(to right, rgb(104 137 255), rgb(152 175 255));
  border-radius: 10px;
}

.cookieCard::before {
  position: absolute;
  top: -25%;
  right: -25%;
  z-index: 1;
  width: 150px;
  height: 150px;
  content: '';
  background: linear-gradient(to right, rgb(110 142 255), rgb(195 208 255));
  border-radius: 50%;
}

.cookieHeading {
  z-index: 2;
  font-size: 1.5em;
  font-weight: 600;
  color: rgb(241 241 241);
}

.cookieDescription {
  z-index: 2;
  font-size: 0.9em;
  color: rgb(241 241 241);
}

.cookieDescription a {
  color: rgb(241 241 241);
}

.acceptButton {
  z-index: 2;
  padding: 11px 20px;
  font-weight: 600;
  color: rgb(241 241 241);
  cursor: pointer;
  background-color: #579bff;
  border: none;
  transition-duration: 0.2s;
}

.acceptButton:hover {
  background-color: #4a8eff;
  transition-duration: 0.2s;
}
</style>
